package cn.stylefeng.guns.modular.hx.storage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 移库记录表
 * </p>
 *
 * @author 
 * @since 2023-09-09
 */
@TableName("hx_storage_move_record")
@Data
public class HxStorageMoveRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 分公司id
     */
    @TableField("operate_id")
    private Long operateId;

    /**
     * 客户id
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;

    /**
     * 仓库id
     */
    @TableField("warehouse_name")
    private String warehouseName;

    /**
     * 库区id
     */
    @TableField("area_id")
    private Long areaId;

    /**
     * 原库位id
     */
    @TableField("old_position_id")
    private Long oldPositionId;

    /**
     * 原库位编号
     */
    @TableField("old_position_number")
    private String oldPositionNumber;

    /**
     * 原库位类型
     */
    @TableField("old_position_type")
    private String oldPositionType;

    /**
     * 库位id
     */
    @TableField("new_position_id")
    private Long newPositionId;

    /**
     * 库位编号
     */
    @TableField("new_position_number")
    private String newPositionNumber;

    /**
     * 库位类型
     */
    @TableField("new_position_type")
    private String newPositionType;

    /**
     * 托盘id
     */
    @TableField("tray_id")
    private Long trayId;

    /**
     * 托盘编号
     */
    @TableField("tray_number")
    private String trayNumber;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 商品码
     */
    @TableField("goods_pcode69")
    private String goodsPcode69;

    /**
     * 规格
     */
    @TableField("goods_specs")
    private String goodsSpecs;

    /**
     * 库存单位
     */
    @TableField("kc_unit")
    private String kcUnit;

    /**
     * 商品库存数量
     */
    @TableField("kc_num")
    private String kcNum;

    /**
     * 移库时间
     */
    @TableField("transfer_time")
    private LocalDateTime transferTime;

    /**
     * 移库操作员
     */
    @TableField("transfer_user")
    private String transferUser;
    private Long transferUserId;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;
    /**
     * 回传新零帮状态
     */
    @TableField("return_status")
    private String returnStatus;

    @Override
    public String toString() {
        return "HxStorageMoveRecord{" +
        "id=" + id +
        ", operateId=" + operateId +
        ", customerId=" + customerId +
        ", warehouseId=" + warehouseId +
        ", areaId=" + areaId +
        ", oldPositionId=" + oldPositionId +
        ", oldPositionNumber=" + oldPositionNumber +
        ", oldPositionType=" + oldPositionType +
        ", newPositionId=" + newPositionId +
        ", newPositionNumber=" + newPositionNumber +
        ", newPositionType=" + newPositionType +
        ", trayId=" + trayId +
        ", goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", goodsPcode69=" + goodsPcode69 +
        ", transferTime=" + transferTime +
        ", transferUser=" + transferUser +
        ", deptId=" + deptId +
                ", returnStatus=" + returnStatus +
        "}";
    }
}
